package com.yzkj.cpjxc.business.system.exception;


/**
 * 用于封装
 */
public class SecurityMessage implements AutoCloseable {

	/**
	 * 是否安全检查通告
	 */
	private Boolean isCheckPass;
	
	/**
	 * 信息对象
	 */
	private Message mess;
	
	public SecurityMessage() {
		
	}

	public SecurityMessage(Boolean isCheckPass) {
		this.isCheckPass = isCheckPass;
	}

	public SecurityMessage(Boolean isCheckPass, Message mess) {
		this.isCheckPass = isCheckPass;
		this.mess = mess;
	}


	/**
	 * 释放对象
	 */
	@Override
	public void close() throws Exception {
		
	}

	
	public Boolean getIsCheckPass() {
		return isCheckPass;
	}

	
	public void setIsCheckPass(Boolean isCheckPass) {
		this.isCheckPass = isCheckPass;
	}

	
	public Message getMess() {
		return mess;
	}

	
	public void setMess(Message mess) {
		this.mess = mess;
	}


	@Override
	public String toString() {
		return "SecurityMessage [isCheckPass=" + isCheckPass + ", mess=" + mess + "]";
	}

}

